// Copyright 2007 Google Inc.
// All Rights Reserved.

package com.google.jessewilson.codesearch.googlecodesearch;

import com.google.jessewilson.codesearch.api.SearchProvider;
import com.google.jessewilson.codesearch.api.spi.SearchProviderConfigurationEditor;
import com.google.jessewilson.codesearch.configuration.SearchProviderConfiguration;

import javax.swing.*;

/**
 * @author Ted Mao (tmao@google.com)
 */
class GcsConfigurationEditor implements SearchProviderConfigurationEditor {

  private JPanel panel = new JPanel();

  public SearchProviderConfiguration getValue() {
    return new GcsConfiguration();
  }

  public void setValue(SearchProviderConfiguration value) {
    // do nothing
  }

  public SearchProvider getSearchProvider() {
    return new GcsSearchProvider();
  }

  public JComponent getComponent() {
    return panel;
  }
}
